package com.htn.system.api.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
public class DriverUserDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    private String id;

    @ApiModelProperty(value = "登陆账号")
    private String username;

    @ApiModelProperty(value = "加密后密码")
    private String password;

    @ApiModelProperty(value = "登陆人名称")
    private String name;

    @ApiModelProperty(value = "该用户所属的终端类型")
    private String type;

    @ApiModelProperty(value = "角色id")
    private String roleId;

/*    @ApiModelProperty(value = "角色名称")
    @TableField(exist = false)
    private String roleName;*/


    @ApiModelProperty(value = "1:启用,0:禁用")
    private Boolean enabled;

    @ApiModelProperty(value = "逻辑删除标记 ")
    private boolean flag;

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "最后登陆时间")
    private LocalDateTime lastLoginTime;

    @ApiModelProperty(value = "项目ID")
    private String itemId;
    //@ApiModelProperty(value = "项目名称")
   /* @TableField(exist = false)
    private String itemName;

    @TableField(exist = false)
    private String menus;*/

    @ApiModelProperty(value = "施工单位ID")
    private String constructionUnitId;


    @ApiModelProperty(value = "职位")
    private String position;


    @ApiModelProperty(value = "微信openId")
    private String openId;

    @ApiModelProperty(value = "是否需要订阅服务")
    private String needService;

    @ApiModelProperty(value = "微信用户union_id")
    private String unionId;

    @ApiModelProperty(value = "用户识别码")
    private String userIdentifNum;

    @ApiModelProperty(value = "被邀请码")
    private String invitedNum;


    /** 用户昵称 */
    @ApiModelProperty(value = "用户名称")
    private String nickName;

    /** 用户头像 */
    private String avatar;

    /** 工长用户类型 */
    @ApiModelProperty(value = "工长用户类型  1： 工长 ；2：散户")
    private String foremanType;


    @ApiModelProperty(value = "审核状态 1: 审核中、2: 审核通过、3: 审核拒绝")
    private String auditStatus;

    @ApiModelProperty("散户审核拒绝备注")
    private String remark;

    @ApiModelProperty("是否从平台下单")
    private String ifOnPlatform;

    @ApiModelProperty(value = "搅拌站额度")
    private String quota;

    @ApiModelProperty(value = "所属公司ID")
    private String ownCompanyId;

    @ApiModelProperty(value = "所属公司名称")
    private String ownCompanyName;



    /*@ApiModelProperty(value = "查询参数 姓名或者手机号")
    @TableField(exist = false)
    String queryParam;*/

}
